import { Component, OnInit, Input } from '@angular/core';

@Component({
  selector: 'app-componentname',
  templateUrl: './componentname.component.html',
  styleUrls: ['./componentname.component.less']
})
export class ComponentnameComponent implements OnInit {
  @Input() userInfor: string;
  public info = '我传给父组件';
  constructor() { }

  ngOnInit() {
  }
  query() {
   return '11111111111我是子组件传来的方法';
  }
}
